<template>
  <div class="publictitle">
    <i class="iconfont icon-back"
       @click="handelClick()"
    >
    </i>
    <span>
       <slot></slot>
    </span>
  </div>
</template>

<script>
export default {
  methods: {
    handelClick () {
      this.$emit('back')
    }
  }
}
</script>

<style lang="scss" scoped>
  .publictitle{
  position: fixed;
  top:0;
  left:0;
  width: 100%;
  height: 40px;
  background: white;
  text-align:center;
  line-height: 40px;
  i{
    position: absolute;
    left:0px;
    top:0px;
  }
}
</style>
